﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ex02
{
    /// <summary>
    /// 问题：不定义类型地创建对象
    /// 解决方案：使用匿名类型
    /// </summary>
    /// 
    class MyApplicationConfigruation
    {
        public string Name { get; set; }
        public string Path { get; set; }
    }
    class Program
    {
        static void Main(string[] args)
        {
            var myApplicationConfigruation = new MyApplicationConfigruation() { Name="App",Path="D:"};
            var configuration = new {Name="App",Path="D:"};
            Console.ReadKey();
        }
    }
}
